/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package folders2;



/**
 *
 * @author Administrator
 */
public class UsersFile2 implements UserFile2Interface
{
    private String userName;
    private String password;
    private int messageCount;    // count number of sent message to this user in folder temp
    /**
     * Constructor to make new user in server
     * @param name user name
     * @param pass user password
     * @param count number of messages sent to this user
     */
    public UsersFile2(String name, String pass,int count)
    {
        userName = name;
        password = pass;
        messageCount = count;
    }
    /**
     * Constructor to make new user in server
     * @param name user name
     * @param pass user password
     */
    public UsersFile2(String name, String pass)
    {
        userName = name;
        password = pass;
        messageCount = 0;
    }
    /**
     * This method is used to get number of messages sent to this user
     * @return number of sent messages
     */
    public int getMessageCount()
    {
        return messageCount;
    }
    /**
     * This method is used to set number of sent messages to this user
     * @param messageCount
     */
    public void setMessageCount(int messageCount)
    {
        this.messageCount = messageCount;
    }
    /**
     * This method is used to get user password
     * @return user password
     */
    public String getPassword()
    {
        return password;
    }
    /**
     * This method is used to set user password
     * @param password new user password
     */
    public void setPassword(String password)
    {
        this.password = password;
    }
    /**
     * This method is used to get userName
     * @return userName
     */
    public String getUserName()
    {
        return userName;
    }
    /**
     * This method is used to set user name
     * @param userName new  user name
     */
    public void setUserName(String userName)
    {
        this.userName = userName;
    }



}
